package com.itheima.day02.Test01;

public class Tiger extends Animal{
    public Tiger() {
    }

    public Tiger(int age, int numOfLegs) {
        super(age, numOfLegs);
    }

    @Override
    public void eat() {
        System.out.println("年龄为"+getAge()+"岁的"+getNumOfLegs()+"条腿的老虎在吃羊");
    }
}
